package com.liang.e;

public class InterfaceText{
    public static void main(String[] args) {
        InterfaceClass<Integer> intc = new InterfaceClass<>();
        intc.method(1);

        InterfaceClass1 intc2 = new InterfaceClass1();
        intc2.method("nihao");
    }

}

class InterfaceClass<E> implements InterfaceE<E>{

    @Override
    public void method(E e) {
        System.out.println(e);
    }
}

class InterfaceClass1 implements InterfaceE<String> {

    @Override
    public void method(String e) {
        System.out.println(e);
    }
}
